{ ... }:
{
  programs = {
    powerline-go.enable = true;

    bash = {
      enable = true;

      enableCompletion = true;

      shellAliases = {
        switch = "home-manager switch";
        rebuild = "nix run 'github:numtide/system-manager' -- switch --flake '/root/.config/system-manager'";
        clean = "apt autoremove -y && dpkg -l|grep ^rc|cut -d ' ' -f 3|xargs apt purge -y && nix-env --profile /nix/var/nix/profiles/system --delete-generations +1 && nix-env --profile /nix/var/nix/profiles/per-user/root/channels --delete-generations +1 && nix-env --delete-generations +1 && nix-collect-garbage --delete-old && nix-store --gc --print-roots && nix-store --optimise && conda clean --packages --tarballs --yes && pip cache purge";
      };

      sessionVariables = {
        # huggingface
        HF_ENDPOINT = "https://hf-mirror.com";

        # python
        PIP_INDEX_URL = "https://pypi.tuna.tsinghua.edu.cn/simple";
        PIP_TRUSTED_HOST = "pypi.tuna.tsinghua.edu.cn";

        LD_LIBRARY_PATH = "/usr/lib/llvm-16/lib/:$LD_LIBRARY_PATH";

        PATH = "/opt/conda/bin:$PATH";
      };

      initExtra = "source '/opt/conda/etc/profile.d/conda.sh'";
    };
  };
}
